package Beans;

import Entities.Phase;
import Phase.FilePhaseLoader;
import Phase.PhaseLoader;
import java.util.ArrayList;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;

@Stateless
@LocalBean
public class PhaseBean {

    public ArrayList<String> loadImagePhaseList(int worldID) {
        PhaseLoader phaseLoader = new FilePhaseLoader();
        return phaseLoader.loadImagePhaseList(worldID);
    }

    public Phase loadPhase(int worldId, int phaseId) {
        FilePhaseLoader filePhaseLoader = new FilePhaseLoader();
        Phase phase = filePhaseLoader.loadPhase(worldId, phaseId);
        return phase;
    }
}
